package cn.corffen.test.algorithm.test;

import cn.corffen.test.algorithm.Node;

public class StaticInstance {


    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            //每个对象都会共享静态变量
            StaticInstance staticInstance = new StaticInstance();
            staticInstance.printNode();
        }
    }

    public void printNode() {
        System.out.println("address:" + node);
    }

    private static Node node = new Node(2);
}
